(require 'asm-mode)
(add-to-list 'auto-mode-alist '("\\.sx\\'" . asm-mode))
(defun starsoul-asm-mode ()
  (setq tab-width 2)
  (setq indent-tabs-mode nil)
  (define-key asm-mode-map (kbd ":") nil) ;;取消asm-colon功能
  (define-key asm-mode-map [?\C-j] 'electric-indent-just-newline) ;;使用^C-j换行不自动缩进
  (define-key asm-mode-map (kbd "<return>") 'newline) ;;使用retrun换行自动缩进
  (define-key emacs-lisp-mode-map [?\C-i] 'starsoul-tab)
  (electric-indent-mode nil)
  ;;(column-marker-2 88)
)
(add-hook 'asm-mode-hook 'starsoul-asm-mode)
(provide 'init_asm-mode)
